/*
 * @Author: YYJ
 * @Date: 2023-12-16 14:40:39
 * @Description: 
 * @FilePath: \lgd-admin\src\services\person\overView\index.tsx
 */
import { request } from '@umijs/max';

export interface OverviewItem {
  assetSum?: number
  debtSum?: number
  netAssetSum?: number
  netAssetSub?: number
  netAssetRatio?: string,
  netAssetTrend: 'up' | 'down'
  lastAssetSum?: number
  lastDebtSum?: number
  lastNetAssetSum?: number
  lastNetAssetSub?: number
  lastNetAssetRatio?: string,
  lastNetAssetTrend: 'up' | 'down'
  inAmount?: number
  yearInAmount?: number
  inAmountSub?: number
  inAmountRatio?: string
  inAmountTrend: 'up' | 'down'
  lastInAmount?: number
  lastYearInAmount?: number
  lastInAmountSub?: number
  lastInAmountRatio?: string
  lastInAmountTrend: 'up' | 'down'
}

export async function queryOverview() {
  return request<API.LgdResult>('/admin/person/queryOverview', {
    method: 'POST',
  })
}

export async function queryBalanceList() {
  return request<API.LgdResult>('/admin/person/queryBalanceList', {
    method: 'POST',
  })
}
